<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="dev.tinelix.irc.android.legacy">

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.GET_TASKS" />
    <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" tools:ignore="ScopedStorage" />
    <uses-permission android:name="android.permission.READ_INTERNAL_STORAGE"></uses-permission>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28"></uses-permission>
    <uses-sdk android:maxSdkVersion="22"></uses-sdk> <!-- because this project uses deprecated components that don't work in Android 6.0 Marshmallow and higher -->

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/short_app_name"
        android:supportsRtl="true"
        android:theme="@style/IRCClient"
        android:name=".IRCClientApp">
        <activity
                android:name=".MainActivity"
                android:label="@string/short_app_name"
                android:exported="true"
                android:configChanges="locale|orientation">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />

                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
        <activity
            android:name=".ConnectionManagerActivity"
            android:label="@string/connection_manager_title"
            android:exported="true">
        </activity>
        <activity android:name=".ProfileSettingsActivity"
            android:label="@string/connection_manager_title"
            android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mcc|mnc|uiMode">
        </activity>
        <activity android:name=".CustomNicknamesActivity"
            android:label="@string/nicknames_manager_title">
        </activity>
        <activity android:name=".ThreadActivity"
            android:label="@string/app_name"
            android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mcc|mnc|uiMode">
        </activity>
        <activity android:name=".AboutApplicationActivity"
            android:label="@string/about_application_str">
        </activity>
        <activity android:name=".NotificationActivity"
            android:label="Notification Activity">
        </activity>
        <activity android:name=".MainSettingsActivity"
            android:label="@string/settings_title"
            android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mcc|mnc|uiMode">
        </activity>
        <activity android:name=".DebugLogsActivity"
            android:label="@string/debug_log_item"
            android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mcc|mnc|uiMode">
        </activity>
    </application>
</manifest>
